import request from '@/utils/request_zc'

export function getCarrierApplication ({
  page,
  limit,
  carryApplyNo,
  outStockNo,
  deliveryNo,
  customerId,
  applyUser,
  applyStartTime,
  applyEndTime,
  applyStatus,
  approveUser,
  approveStartTime,
  approveEndTime,
  approveStatus
}) {
  return request({
    url: '/carry_apply/list',
    method: 'get',
    params: {
      page,
      limit,
      carryApplyNo,
      outStockNo,
      deliveryNo,
      customerId,
      applyUser,
      applyStartTime,
      applyEndTime,
      applyStatus,
      approveUser,
      approveStartTime,
      approveEndTime,
      approveStatus
    }
  })
}

export function editCarrierApplication (data) {
  return request({
    url: '/carry_apply/edit',
    method: 'post',
    data
  })
}

export function getDetail ({ id }) { return request({ url: `/carry_apply/detail/list/${id}`, method: 'get' }) }


